<?php if(!defined('BASEPATH')) exit ('no direct script access allowed');

/*
 *   @Title:  Manage_listproducts 
 *   @author: ViNT 
 *   @Date: 09/22/2013 
 *   @Descripton: this class provides actions for admin view all products in webstore
 */
class Manage_listproducts extends MX_Controller{
    
    /*
     * contructor
     */
    function __construct() {
        parent::__construct();
        $this->lang->load('vi', 'vietnamese');
    }
    
    /*
     *  @title :  index
     *  @param: null
     *  @return: null
     *  @description: this is defaut function of Manage_listproducts class
     *   , this will be called by controller when call this class
     */
    function index(){
        $this->load->helper('url_userfile');
        $data['title']='Manage Products';
        $data['header'] = "Quản Lý Sản Phẩm";
        //Use tree1.css, tree2.css, tree1.js, tree2.js, tree3.js, tree_config.js to buil tree.
        $data['cssfiles'] = array('listproducts.css','tree1.css','tree2.css');
        $data['jsfiles'] = array('listproducts.js','tree1.js','tree2.js','tree3.js','tree_config.js','editproduct.js');
        $data['module']='manage_products';
        $data['view_file']='view_manage_listsproducts';
        echo Modules::run('manage_layouts/render',$data);

        
    }
}


?>
